<template>
  <button @click="show=!show">显示/隐藏</button>
  <h1 v-show="show">斗破苍穹</h1>
  <hr>
  <!-- 双标签 -->
  <MyCom1></MyCom1>
  <MyCom1/>
</template>

<script setup>
import { ref } from 'vue';
//导入组件
// import MyCom1 from './components/MyCom1.vue';
import MyCom1 from '@/components/MyCom1.vue';

const show = ref(true);
</script>

<style lang="scss" scoped>

</style>